package com.sy.simpleegg.platform.whm

object MQConfig {
    const val HOST = "tcp://39.108.186.175:1883"
    const val nameUser = "hardware_coinExchangeMachine"
    const val passWord = "password_coinExchangeMachine"

    const val DEV_TYPE = "coinExchangeMachine"
    const val DEV_TRANS_VER = "GXC01"
    const val DEV_KEY = "SD55662D"

    /**
     * 纸币面额，单位-分
     */
    val MONEY = intArrayOf(100, 500, 1000, 2000, 5000, 10000)
    const val PROTOCOL_VER1 = "GXC01"
    const val PROTOCOL_VER2 = "GXC02"

    /**
     * 数据头
     */
    const val HEAD = "EA"

    /**
     * 设备类型 01-洗车机 02-娃娃机 03-兑币机
     */
    const val DEVICE_TYPE = "03"

    /**
     * 登录命令号
     */
    const val CMD_LOGIN = "01"

    /**
     * 设备初始化
     */
    const val CMD_INIT = "03"

    /**
     * 设备心跳
     */
    const val CMD_HEARTBEAT = "05"

    /**
     * 订单响应
     */
    const val CMD_ORDER_RESPONSE = "71"

    /**
     * 获取套餐
     */
    const val CMD_GET_PACKAGE = "8A"

    /**
     * 上报反扫数据
     */
    const val CMD_POST_BACKSCAN = "0A"

    /**
     * 上报投钞数据
     */
    const val CMD_POST_BILL = "8C"

    /**
     * 订单响应
     */
    const val CMD_RESPON_ORDER = "81"

    /**
     * 订单响应
     */
    const val CMD_GET_PAY_CODE = "0C"

    /**
     * 提示信息响应
     */
    const val CMD_RESPON_TIPS = "0F"

    /**
     * 会员提币码
     */
    const val CMD_GET_WITHDRAWAL_CODE = "8E"

    /**
     * 密钥
     */
    const val KEY = "SD55662D"
    /*************************************************************订单相关 */
    /**
     * 微信支付
     */
    const val ORDER_PAYTYPE_WX = 1

    /**
     * 支付宝
     */
    const val ORDER_PAYTYPE_ALI = 2

    /**
     * 聚合
     */
    const val ORDER_PAYTYPE_TOGETHER = 3

    /**
     * 会员支付
     */
    const val ORDER_PAYTYPE_MEMBER = 4

    /**
     * 现金支付 人民币
     */
    const val ORDER_PAYTYPE_CASH = 5

    /**
     * 会员提币
     */
    const val ORDER_PAYTYPE_WITHDRAWAL = 80 //0x50

    /**
     * 派币
     */
    const val ORDER_PAYTYPE_PUSH = 81 //0x51

    /**
     * 本平台核销（优惠券）
     */
    const val ORDER_PAYTYPE_COUPON = 96 //0x60

    /**
     * 美团核销
     */
    const val ORDER_PAYTYPE_MEITUAN = 97 //0x61

    /**
     * 抖音核销
     */
    const val ORDER_PAYTYPE_TITOK = 98 //0x62

    /**
     * 订单准备中
     */
    const val ORDER_STATE_READY = 1

    /**
     * 订单进行中
     */
    const val ORDER_STATE_RUNNING = 2

    /**
     * 订单完成
     */
    const val ORDER_STATE_FINISH = 3

    /**
     * 订单失败
     */
    const val ORDER_STATE_FAILURE = 4

    /**
     * 拒绝原因：默认
     */
    const val ORDER_REJECT_DEFAULT = 0

    /**
     * 通讯异常
     */
    const val ORDER_REJECT_NET_ERR = 2

    /**
     * 设备故障
     */
    const val ORDER_REJECT_ERR = 3
    /*************************************************************反扫相关 */
    /**
     * 未知支付
     */
    const val BACKSCAN_PAYTYPE_DEFAULT = 0

    /**
     * 微信支付
     */
    const val BACKSCAN_PAYTYPE_WX = 1

    /**
     * 支付宝
     */
    const val BACKSCAN_PAYTYPE_ALI = 2

    /**
     * 聚合
     */
    const val BACKSCAN_PAYTYPE_TOGETHER = 3

    /**
     * 会员支付
     */
    const val BACKSCAN_PAYTYPE_MEMBER = 4

    /**
     * 现金支付
     */
    const val BACKSCAN_PAYTYPE_CASH = 5

    /**
     * 会员提币
     */
    const val BACKSCAN_PAYTYPE_WITHDRAWAL = 80 //0x50

    /**
     * 本平台核销（优惠券）
     */
    const val BACKSCAN_PAYTYPE_COUPON = 96 //0x60

    /**
     * 美团核销
     */
    const val BACKSCAN_PAYTYPE_MEITUAN = 97 //0x61

    /**
     * 抖音核销
     */
    const val BACKSCAN_PAYTYPE_TITOK = 98 //0x62

    /**
     * 业务类型-兑币机购币
     */
    const val BACKSCAN_BUSINESS_BUY = 1

    /**
     * 业务类型-会员提币
     */
    const val BACKSCAN_BUSINESS_WITHDRAWAL = 2

    /**
     * 套餐类型-普通套餐
     */
    const val BACKSCAN_PACKAGE_TYPE_NORMAL = 2

    /**
     * 套餐类型-会员套餐
     */
    const val BACKSCAN_PACKAGE_TYPE_RECHARGE = 1

    /**
     * 套餐类型-无
     */
    const val BACKSCAN_PACKAGE_TYPE_DEFAULT = 0
    /*************************************************************正扫相关 */
    /**
     * 未知支付
     */
    const val FOREWARD_SCAN_PAYTYPE_DEFAULT = 0

    /**
     * 微信支付
     */
    const val FOREWARD_SCAN_PAYTYPE_WX = 1

    /**
     * 支付宝
     */
    const val FOREWARD_SCAN_PAYTYPE_ALI = 2

    /**
     * 聚合
     */
    const val FOREWARD_SCAN_PAYTYPE_TOGETHER = 3

    /**
     * 会员支付
     */
    const val FOREWARD_SCAN_PAYTYPE_MEMBER = 4

    /**
     * 套餐类型：普通套餐
     */
    const val FOREWARD_SCAN_PACKAGE_NORMAL = 2

    /**
     * 套餐类型：会员套餐
     */
    const val FOREWARD_SCAN_PACKAGE_RECHARGE = 1
    /*************************************************************套餐相关 */
    /**
     * 普通套餐
     */
    const val PACKAGE_TYPE_NORMAL = 2

    /**
     * 会员套餐
     */
    const val PACKAGE_TYPE_RECHARGE = 1
}
